package com.spider.iceCream.service;

import com.spider.iceCream.entity.DayRank;
import com.spider.iceCream.entity.Video;
import com.spider.iceCream.mapper.DayRankMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author Lord
 * @date 2021/7/14 15:20
 */
@Service
public class DayRankService {
    @Autowired
    DayRankMapper dayRankMapper;
    public DayRank isExistRank(DayRank dayRank){
        return dayRankMapper.isExistRank(dayRank);
    }

    public int insertRank(DayRank dayRank){
        return dayRankMapper.insertVideo(dayRank);
    }

    public List<DayRank> getRank(DayRank dayRank){return  dayRankMapper.getRank(dayRank);}

    public List<DayRank> getRankHistory(Integer oid){return  dayRankMapper.getRankHistory(oid);}

    public List<DayRank> getSingleRank(Integer oid, String date){return dayRankMapper.getSingleRank(oid,date);}

    public List<DayRank> test(){return dayRankMapper.test();}
}
